/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.web.entity;

 import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

/**
 * 反馈管理Entity
 * @author rongjie
 * @version 2017-08-06
 */
public class WxFeedback extends DataEntity<WxFeedback> {
	
	private static final long serialVersionUID = 1L;
	private WxUser user;		// 用户
	private String text;		// 反馈内容
	private Date time;		// 时间
	
	public WxFeedback() {
		super();
		this.setIdType(IDTYPE_AUTO);
	}

	public WxFeedback(String id){
		super(id);
	}

	@ExcelField(title="用户", fieldType=WxUser.class, value="user.userName", align=2, sort=5)
	public WxUser getUser() {
		return user;
	}

	public void setUser(WxUser user) {
		this.user = user;
	}
	
	@ExcelField(title="反馈内容", align=2, sort=6)
	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ExcelField(title="时间", align=2, sort=7)
	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}
	
}